import { httpDelete, httpPost, httpPut } from "@/utils/http";

// export type UserTypeItemLimit = {
//     _id?: string,
//     is_show: number,
//     name: string,
//     grade: string,
//     discount: string,
//     exp: string
// }

export function addUserTypeApi(data: object) {
    return httpPost('/userType/add', data);
}
export function getUserTypeApi(data?: object) {
    return httpPost('/userType/find', data);
}
export function updateUserTypeApi(data: object) {
    return httpPut('/userType/update', data);
}
export function deleteUserTypeApi(data: object) {
    return httpDelete('/userType/remove', data);
}
// // 获取一个用户等级数据的详情
// export const getUserTypeByLabelApi = (data?: object) => {
//     return httpGet('/userType/getByType', data)
// }
